package edu.xidian.bdilab.jrbigdata.service.enterprise.register;

import edu.xidian.bdilab.jrbigdata.controller.response.ResponseResult;

import java.util.Date;

public interface RegisterService {
    /**
     * 通过统一社会代码查找企业是否存在并做出响应
     * @param social_code
     * @return
     */
    boolean checkEnterpriseInfo(String social_code, String enterprise_name,
                                       int registered_captial, String owner_name,
                                       int region, String street, String owner_phone,
                                       String contact_name, String contact_phone,
                                       Date establish_time, String establish_address,
                                       Integer fund_quota, Integer available, String business_scop);

    /**
     * 将企业信息插入表中
     * @return
     */
    void setEnterpriseInfo(String social_code, String enterprise_name, int registered_captial, String owner_name, int region,
                           String street, String owner_phone, String contact_name,
                           String contact_phone, Date establish_time, String establish_address,
                           Integer fund_quota, Integer available, String business_scop,
                           String enterprise_desc);

    void addEnterpriseUser(String social_code, String password);
}
